package com.wobito.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author Wangbaba
 * @Date 2024/8/26 13:41
 * @Version 1.0
 */
@Getter
public enum UserRoleEnum {

    SYSTEM_ADMIN(1,"系统管理员"),
    NORMAL_ADMIN(2,"普通管理员"),
    REGION_ADMIN(3,"区域管理员");

    @EnumValue
    private final int code;

    @JsonValue
    private final String name;

    UserRoleEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }
}
